function newWindow(pageToLoad, winName, width, height, center) {
    xposition = 0;
    yposition = 0;
    if (parseInt(navigator.appVersion) >= 4 && center) {
        xposition = (screen.width - width) / 2;
        yposition = (screen.height - height) / 2;
    }
    args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=0," + "scrollbars=0," + "status=0," + "titlebar=0," + "hotkeys=0," + "screenx=" + xposition + "," + "screeny=" + yposition + "," + "left=" + xposition + "," + "top=" + yposition;
    window.open(pageToLoad, winName, args);
}


function getRadioValue(theRadio) {
    for (var i=0; i<theRadio.length; i++) {
        if (theRadio[i].checked) {
            return theRadio[i].value;
        }
    }
    return false;
}
